//
//  BaseM.m
//  YYFMMall
//
//  Created by chenzm on 2019/8/26.
//  Copyright © 2019 YuYou1. All rights reserved.
//

#import "BaseM.h"

@implementation BaseM

/*
 
 /// 将属性名换为其他key去字典中取值
 + (NSDictionary *)mj_replacedKeyFromPropertyName{
 return @{@"fid" : @"id"};
 }
 
 /// 数组中需要转换的模型类
 +(NSDictionary *)mj_objectClassInArray {
 return @{@"spec" : @"SpecModel"};
 }
 
 */

+(NSMutableArray *)shareArrModel:(NSArray *)arr{
    NSMutableArray *marr = [[self class] mj_objectArrayWithKeyValuesArray:arr];
    return marr;
}

+(id)shareDicModel:(NSDictionary *)dic{
    id model = [[self class] mj_objectWithKeyValues:dic];
    return model;
}



-(NSMutableArray *)bsMarr1{
    if (!_bsMarr1) {
        _bsMarr1 = [NSMutableArray arrayWithCapacity:0];
    }
    return _bsMarr1;
}

-(NSMutableArray *)bsMarr2{
    if (!_bsMarr2) {
        _bsMarr2 = [NSMutableArray arrayWithCapacity:0];
    }
    return _bsMarr2;
}

-(NSMutableArray *)bsCellMarr{
    if (!_bsCellMarr) {
        _bsCellMarr = [NSMutableArray arrayWithCapacity:0];
    }
    return _bsCellMarr;
}

-(NSMutableDictionary *)bsMdic1{
    if (!_bsMdic1) {
        _bsMdic1 = [NSMutableDictionary dictionaryWithCapacity:0];
    }
    return _bsMdic1;
}

-(NSMutableDictionary *)bsMdic2{
    if (!_bsMdic2) {
        _bsMdic2 = [NSMutableDictionary dictionaryWithCapacity:0];
    }
    return _bsMdic2;
}

- (UIKeyboardType)bsKeyboardType1{
    if(!_bsKeyboardType1){
        _bsKeyboardType1 = UIKeyboardTypeDefault;
    }
    return _bsKeyboardType1;
}

- (UIKeyboardType)bsKeyboardType2{
    if(!_bsKeyboardType2){
        _bsKeyboardType2 = UIKeyboardTypeDefault;
    }
    return _bsKeyboardType2;
}

@end
